/**
 * 
 */
package com.hexacta.hrs.domain.feedback;

/**
 * @author gvilla
 * 
 */
public enum ScoreType {
	
    // sujeto a cambio
    //MuySatisfactorio, Satisfactorio, PocoSatisfactorio, NoSatisfactorio, 

    NAE("No acorde a lo esperado"),
    ADE("Algo por debajo de lo esperado"),
    AE("Acorde a lo esperado"),
    AEE("Algo por encima de lo esperado"),
    EE("Por encima de lo esperado");
    
    private String description;
    
    private ScoreType(String description) {
    	this.description = description;
    }

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
 
	public String toString() {
		return this.description;
	}

	public static ScoreType valueOfDescription(String scoreDescription) {
		if ((scoreDescription == null) || (scoreDescription.trim().isEmpty())) {
			return null;
		}
		for (ScoreType score : ScoreType.values()) {
			if (score.getDescription().equals(scoreDescription.trim())) {
				return score;
			}
		}
		return null;
	}
	
}
